package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 交易记录对象 tb_transactionrecords
 * 
 * @author yy
 * @date 2024-08-13
 */
public class Transactionrecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long trid;

    /** 用户id */
    @Excel(name = "用户id")
    private String openId;

    /** 交易类别 */
    @Excel(name = "交易类别")
    private String trKinds;

    /** 充电桩id */
    @Excel(name = "充电桩id")
    private Long sid;

    /** 充电站id */
    @Excel(name = "充电站id")
    private Long cid;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 充电量 */
    @Excel(name = "充电量")
    private BigDecimal chargeCapacity;

    /** 完成交易时间记录 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "完成交易时间记录", width = 30, dateFormat = "yyyy-MM-dd")
    private Date trTime;

    /** 交易数 */
    @Excel(name = "交易数")
    private Long trNumber;

    public void setTrid(Long trid) 
    {
        this.trid = trid;
    }

    public Long getTrid() 
    {
        return trid;
    }
    public void setOpenId(String openId)
    {
        this.openId = openId;
    }

    public String getOpenId()
    {
        return openId;
    }
    public void setTrKinds(String trKinds) 
    {
        this.trKinds = trKinds;
    }

    public String getTrKinds() 
    {
        return trKinds;
    }
    public void setSid(Long sid) 
    {
        this.sid = sid;
    }

    public Long getSid() 
    {
        return sid;
    }
    public void setCid(Long cid) 
    {
        this.cid = cid;
    }

    public Long getCid() 
    {
        return cid;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setChargeCapacity(BigDecimal chargeCapacity) 
    {
        this.chargeCapacity = chargeCapacity;
    }

    public BigDecimal getChargeCapacity() 
    {
        return chargeCapacity;
    }
    public void setTrTime(Date trTime) 
    {
        this.trTime = trTime;
    }

    public Date getTrTime() 
    {
        return trTime;
    }
    public void setTrNumber(Long trNumber) 
    {
        this.trNumber = trNumber;
    }

    public Long getTrNumber() 
    {
        return trNumber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("trid", getTrid())
            .append("openId", getOpenId())
            .append("trKinds", getTrKinds())
            .append("sid", getSid())
            .append("cid", getCid())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("chargeCapacity", getChargeCapacity())
            .append("trTime", getTrTime())
            .append("trNumber", getTrNumber())
            .toString();
    }
}
